package prototype;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @author： pang-yun
 * @date： 2021-10-22 01:48
 * 功能目的 ：用于
 */

@Data
@AllArgsConstructor
public class Sleep implements Cloneable {
    private String name;
    private int age;
    private String color;
    private String sex;
    private Sleep  friend;


    @Override
    protected Sleep clone() {
        Sleep sleep = null;
        try {
            sleep = (Sleep) super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return sleep;
    }
}
